import myRequest from '@/utils/myRequest'

export function getProductList(product_name, rows, page) {
  return myRequest({
    url: '/api/admin/product',
    method: 'get',
    params: {
      product_name: product_name,
      rows: rows,
      page: page
    }
  })
}

export function deleteProduct(productId) {
  return myRequest({
    url: '/api/admin/product/delete',
    method: 'POST',
    params: {
      product_id: productId // Send product IDs as an array in the request body
    }
  })
}
